﻿using System;
using System.Collections.Generic;

    class DecimalToBinary
    {
        static List<int> BinaryReprezentation(int number)
        {
            List<int> binary=new List<int>();
            int bit = 0;
            while (number > 0)
            {
               bit = number % 2;
               number = number / 2;
               binary.Add(bit);
            }
            return binary;
        }      
   
        static void Main(string[] args)
        {
            int n = int.Parse(Console.ReadLine());
            BinaryReprezentation(n);
            List<int> binary = BinaryReprezentation(n);
            binary.Reverse();
            for (int i = 0; i < binary.Count; i++)
            {
                Console.Write(binary[i]);
            }
            Console.WriteLine();
        }
    }

